package com.cskaoyan.day3;

import java.util.Scanner;

public class ScannerBasis {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("使用Scanner依次接收以下三种数据类型的值:int类型、String类型、double类型");
        String intTypeString = sc.nextLine();
        String stringTypeString = sc.nextLine();
        String doubleTypeString = sc.nextLine();
        int intType = Integer.parseInt(intTypeString);
        String StringType = stringTypeString;
        double doubleType = Double.parseDouble(doubleTypeString);
        System.out.println(intTypeString + "+" + doubleTypeString + "=" + (intType + doubleType));
        System.out.println(intTypeString + "+" + stringTypeString + "+" + doubleTypeString + " = " + intTypeString + stringTypeString + doubleTypeString);

    }
}
